Client-Server Example
Server
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local BridgeNet = require(ReplicatedStorage.Packages.BridgeNet)
local Remote = BridgeNet.CreateBridge("Remote")
Remote:Connect(function(plr, stringA, stringB)
print(stringA .. stringB) -- Prints "Hello, server!"
end)
Client
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local BridgeNet = require(ReplicatedStorage.Packages.BridgeNet)
local Remote = BridgeNet.CreateBridge("Remote")
while true do
Remote:Fire("Hello, ", "server!")
task.wait(1)
end